package com.bckj.fastboot.flow.process;

import com.bckj.fastboot.core.extra.extpt.ExtPtProcHandler;
import com.bckj.fastboot.core.extra.stage.BaseStageContext;
import com.bckj.fastboot.flow.process.consumer.StageBpmnProcessConsumer;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class ExtPtProcHandlerImpl implements ExtPtProcHandler {
    private final BpmnProcessExecutor bpmnProcessExecutor;
    private final StageBpmnProcessConsumer stageBpmnProcessConsumer;
    @Override
    public void handle(String processId, BaseStageContext context) {
        bpmnProcessExecutor.execute(processId, context, stageBpmnProcessConsumer);
    }
}
